package com.huey.oa.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.huey.db.base.model.BaseModel;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author huey
 * @since 2021-06-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("oa_leave")
public class OaLeave extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private String id;

    /**
     * 流程实例id
     */
    private String processInstanceId;

    /**
     * 申请人
     */
    private String userId;

    /**
     * 申请人姓名
     */
    private String name;

    /**
     * 请假申请时间
     */
    private Date leaveDate;

    /**
     * 开始时间
     */
    private Date beginDate;

    /**
     * 结束时间
     */
    private Date endDate;

    /**
     * 请假类型
     */
    private String type;

    /**
     * 请假事由
     */
    private String reason;

    /**
     * 状态（1：未开始；2：进行中；3已完成；4：驳回）
     */
    private String status;


    public static final String ID = "id";

    public static final String PROCESS_INSTANCE_ID = "process_instance_id";

    public static final String USER_ID = "user_id";

    public static final String NAME = "name";

    public static final String LEAVE_DATE = "leave_date";

    public static final String BEGIN_DATE = "begin_date";

    public static final String END_DATE = "end_date";

    public static final String TYPE = "type";

    public static final String REASON = "reason";

    public static final String STATUS = "status";

}
